<script>
    function closeWin()
    {
        myWindow.close()
    }
</script>
<script type="text/javascript">
    myWindow=window.close;
    myWindow.document.write("This is 'myWindow'")
</script>
<div class="bord">
    <div class="title">close</div>
    <div class="introduce">
        close() 方法用于关闭浏览器窗口。
    </div>
</div>
<div class="bord">
    <div class="title">演示效果</div>
    <div class="introduce">
        <input type="button" value="Close 'myWindow'"
               onclick="closeWin()" />
    </div>
</div>
<div class="bord">
    <div class="title">代码</div>
    <div class="introduce">
    </div>
</div>